package edu.sctu.zhoumengxue.day201505.day20150505.bean;





/**
 * Created by user12 on 2015/5/5.
 */
public class Main {

    public static void main(String[] args) {
        Inter inter;
        Dog1 dog1 = new Dog1();
        dog1.getColor();
        dog1.getSize();
        dog1.getAction();
        dog1.getAll(new Inter() {
            @Override
            public void getAll(String color, int size, String action) {
                System.out.println("color:" + color + " size:" + size + " action:" + action);
            }
        });

        Dog2 dog2 = new Dog2();
        dog2.getColor();
        dog2.getSize();
        dog2.getAction();
        dog2.getAll(new Inter() {

            @Override
            public void getAll(String color, int size, String action) {
                System.out.println("color:" + color + " size:" + size + " action:" + action);
            }
        });
        Dog3 dog3 = new Dog3();
        dog3.getColor();
        dog3.getSize();
        dog3.getAction();
        dog3.getAll(new Inter() {

            @Override
            public void getAll(String color, int size, String action) {
                System.out.println
                        ("color=" + color + " size=" + size + " action=" + action);
            }
        });

    }
}
